package com.CST.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class BdOrganizationRule {
    @ApiModelProperty(value = "ID")
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "部门编号")
    @ExcelProperty(value = "DeptCode")
    @TableField("DeptCode")
    private String deptCode;

    @ApiModelProperty(value = "部门名称")
    @ExcelProperty(value = "DeptName")
    @TableField("DeptName")
    private String deptName;

    @ApiModelProperty(value = "科室编号")
    @ExcelProperty(value = "PDeptCode")
    @TableField("PDeptCode")
    private String pDeptCode;

    @ApiModelProperty(value = "科室名称")
    @ExcelProperty(value = "PDeptName")
    @TableField("PDeptName")
    private String pDeptName;

    @ApiModelProperty(value = "规则编号对应字典表中Rule_Organization选中编号")
    @ExcelProperty(value = "RuleCode")
    @TableField("RuleCode")
    private String ruleCode;

    @ApiModelProperty(value = "所属院区")
    @ExcelProperty(value = "Yard")
    @TableField("Yard")
    private Integer yard;

    @ApiModelProperty(value = "是否有效")
    @ExcelProperty(value = "RowStatus")
    @TableField("RowStatus")
    private String rowStatus;

    @ApiModelProperty(value = "创建人")
    @ExcelProperty(value = "CreatedBy")
    @TableField("CreatedBy")
    private String createdBy;

    @ApiModelProperty(value = "创建时间",example = "2020-02-05 13:30:41")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE_TIME)
    @ExcelProperty(value = "CreatedOn")
    @TableField("CreatedOn")
    private String createdOn;

    @ApiModelProperty(value = "修改人")
    @ExcelProperty(value = "UpdatedBy")
    @TableField("UpdatedBy")
    private String updatedBy;

    @ApiModelProperty(value = "修改时间",example = "2020-02-05 13:30:41")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE_TIME)
    @ExcelProperty(value = "UpdatedOn")
    @TableField("UpdatedOn")
    private String updatedOn;

    @ApiModelProperty(value = "关联状态")
    @ExcelProperty(value = "关联状态")
    @TableField(exist = false)
    private String relationStatus;

    @TableField(exist = false)
    private int pageIndex;

    @TableField(exist = false)
    private int pageSize;
    
    @TableField(exist = false)
    private String parentRuleCode;
}
